<template>
    <div class="container" @click="to(info.link)">
        <div id="title">
            {{info.title}}
        </div>
        <div id="intro">
            {{info.intro}}
        </div>
    </div>
</template>

<script>
export default {
    props:['info'],
    methods:{
        to(path) {
            this.$router.push(path)
        }
    }
}
</script>

<style lang="less" scoped>
    .container {
        color: @dark_font;
        box-shadow: 0px 0px 5px rgb(32, 32, 32,0.3);
        margin-left: 35px;
        margin-top: 35px;
        background: @dark_box;
        border-radius: 8px;
        width: 400px;
        height: 170px;
        padding-top: 28px;
        padding-left: 25px;
        #title {
            font-size: 1.5em;
        }
        #intro {
            font-size: 16px;
        }
    }
    .container:hover {
        background: @dark_box_hover;
        cursor: pointer;
    }
</style>